Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate error message on chart connection failure #8476

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

ashb
Copy link
Member

@ashb ashb commented Apr 20, 2020

This caused the error message to be shown twice - once in the chart body
(which is faded out) and again at the "top-level" error

@ashb ashb added the area:webserver Webserver related Issues label Apr 20, 2020
@kaxil kaxil added this to the Airflow 1.10.11 milestone Apr 20, 2020
@@ -160,9 +160,6 @@ <h4 class="panel-title">
url = "{{ url_for('airflow.chart_data') }}" + location.search;
$.getJSON(url, function(payload) {
$('#loading').hide();
if (payload.error !== undefined) {
$('#chart_body').html('<div class="alert alert-danger">' + payload.error + '</div>');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error is still shown by the error function on L181

This caused the error message to be shown twice - once in the chart body
(which is faded out) and again at the "top-level" error
@ashb ashb force-pushed the no-duplicate-error-on-chart branch from 91b6c46 to f8a3f91 Compare April 21, 2020 14:17
@codecov-io
Copy link

codecov-io commented Apr 21, 2020

Codecov Report

Merging #8476 into v1-10-test will decrease coverage by 0.55%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##           v1-10-test    #8476      +/-   ##
==============================================
- Coverage       81.86%   81.30%   -0.56%     
==============================================
  Files             542      542              
  Lines           37221    37223       +2     
==============================================
- Hits            30471    30265     -206     
- Misses           6750     6958     +208     
Impacted Files Coverage Δ
airflow/contrib/hooks/cassandra_hook.py 16.88% <0.00%> (-76.63%) ⬇️
airflow/executors/sequential_executor.py 50.00% <0.00%> (-50.00%) ⬇️
...irflow/contrib/operators/redis_publish_operator.py 50.00% <0.00%> (-50.00%) ⬇️
airflow/contrib/sensors/mongo_sensor.py 53.33% <0.00%> (-46.67%) ⬇️
airflow/executors/celery_executor.py 47.79% <0.00%> (-41.18%) ⬇️
airflow/contrib/sensors/redis_key_sensor.py 61.53% <0.00%> (-38.47%) ⬇️
airflow/utils/sqlalchemy.py 91.17% <0.00%> (-5.89%) ⬇️
airflow/utils/dag_processing.py 86.68% <0.00%> (-5.20%) ⬇️
airflow/utils/helpers.py 75.34% <0.00%> (-5.12%) ⬇️
airflow/contrib/hooks/mongo_hook.py 93.15% <0.00%> (-4.11%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab54638...f8a3f91. Read the comment docs.

@ashb ashb merged commit ecf0494 into apache:v1-10-test Apr 21, 2020
@ashb ashb deleted the no-duplicate-error-on-chart branch April 21, 2020 22:15
kaxil pushed a commit to astronomer/airflow that referenced this pull request May 4, 2020
This caused the error message to be shown twice - once in the chart body
(which is faded out) and again at the "top-level" error

(cherry picked from commit ecf0494)
kaxil pushed a commit to astronomer/airflow that referenced this pull request Jun 15, 2020
This caused the error message to be shown twice - once in the chart body
(which is faded out) and again at the "top-level" error

(cherry picked from commit ecf0494)
(cherry picked from commit b779c59c1303faa14ac32204fa7afc169441531b)
kaxil pushed a commit to astronomer/airflow that referenced this pull request Jun 15, 2020
This caused the error message to be shown twice - once in the chart body
(which is faded out) and again at the "top-level" error

(cherry picked from commit ecf0494)
(cherry picked from commit b779c59c1303faa14ac32204fa7afc169441531b)
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
This caused the error message to be shown twice - once in the chart body
(which is faded out) and again at the "top-level" error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants